import os
import time
import datetime
# 封装域名
# BASE_URL = "://czt.weitaikeji.com"   # 正式服
BASE_URL = "://czt.crhlink.com"   # 测试服

# 设置一个变量存储 token
TOKEN_zhengshifu= "ef89850faf0f4a68bc1a8af4b34d3da1"  # 正式服
TOKEN = "661aa7079b9145d8a9824304940c6d31"  # 测试服
Token_zyf = "a9e53610659e4d86ac3866c512e519c7" # 测试服张一飞
Token_002 = "877d64f6718b412f8ccf4aa88012e92a"  # 小号ceshi900331
# 获取项目的绝对路径
ABS_PAHT = os.path.abspath(__file__)
print(ABS_PAHT)
ABS_DIR = os.path.dirname(ABS_PAHT)
print(ABS_DIR)

def onedaytime(sameday,h,m):
    # 先获得时间数组格式的日期
    sameDayAgo = datetime.datetime.now()
    sameDayAgo = sameDayAgo + datetime.timedelta(days=sameday)
    sameDayAgo = sameDayAgo+datetime.timedelta(hours=h)
    sameDayAgo = sameDayAgo + datetime.timedelta(minutes=m)
    # # 转换为时间戳
    # timeStamp = int(time.mktime(sameDayAgo.timetuple()))
    # 转换为其他字符串格式
    print(sameDayAgo.strftime("%Y-%m-%d %H:%M:%S"))
    return sameDayAgo.strftime("%Y-%m-%d %H:%M:%S")

if __name__ == '__main__':
    onedaytime(1,2,30)